Bonjour à tous,
J’ai besoin d'aide car je me prends la tête sur un problème entre Hudson et Nunit.

Voici le contexte:
On a plus de 600 tests unitaires utilisant Nunit. En les exécutant par ligne de commande Windows les tests sont tous exécutés et aucune erreur n'est détectée.
Si j'utilise cette ligne de commande sous Hudson. Les tests passent tous sauf un!!
J'ai alors cette erreur qui apparait:

Unhandled exceptions:
1) Hello.Database.Params.ParameterDatabase_UnitTest.B001_DeleteTS_and_Contents : System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at CVIPC.WaitingForAction.ShowMe() in d:\Appli\Prj\Hello_Softwares\Hello\Hello\Hello\WaitingForAction.cs:line 87
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
2) Hello.Database.Params.ParameterDatabase_UnitTest.B001_DeleteTS_and_Contents : System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at CVIPC.WaitingForAction.ShowMe() in d:\Appli\Prj\Hello_Softwares\Hello\Hello\Hello\WaitingForAction.cs:line 87
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
3) Hello.Database.Params.ParameterDatabase_UnitTest.B001_DeleteTS_and_Contents : System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at CVIPC.WaitingForAction.ShowMe() in d:\Appli\Prj\CVI3_Softwares\Hello\Hello\Hello\WaitingForAction.cs:line 87
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


En effet, ce test crée un thread, ouvre une fenêtre et la laisse ouverte tant que le thread n'est pas fermé.

Ce que je ne comprends pas c'est pourquoi ce test passe en ligne de commande et pas sous hudson? Est-ce que hudson mets en place des options qui bloque ce type de test?

Merci d'avance