You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Arnaud bourree <ar...@gmail.com> on 2019/11/03 13:02:35 UTC

Re: Why tests aren't executing?

Hi,

Where are unit tests located? src/test/java ?
How are unit test classes named? myTest.java ?
What is surefire plugin configuration?

Regards,

Arnaud

Le jeu. 31 oct. 2019 à 23:41, Greenberg, Gary <gg...@visa.com.invalid> a
écrit :

> Still having problems with the project that I have inherited from the
> contractor.
>
> I want to execute unit test, but when I select ‘Test’ from the project
> context menu I am getting:
>
>
>
> --- maven-resources-plugin:3.1.0:testResources (default-testResources) @
> mnsbatch ---
>
> Not copying test resources
>
>
>
> --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @
> mnsbatch ---
>
> Not compiling test sources
>
>
>
> --- maven-surefire-plugin:2.22.2:test (default-test) @ mnsbatch ---
>
> Tests are skipped.
>
> ------------------------------------------------------------------------
>
> BUILD SUCCESS
>
> ----------------
>
>
>
> I did check project properties and there is no skip-tests = true anywhere
> in the actions.
>
> If I try to run a particular test file, I am getting the same thing.
>
> I am not blaming it on Netbeans, as I am getting the same result if I run
> “mvn test” from the command line, but will appreciate any help.
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggreenbe@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>

RE: Why tests aren't executing?

Posted by "Greenberg, Gary" <gg...@visa.com.INVALID>.
I already fixed the problem. It was incorrect surefire configuration.

Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Arnaud bourree <ar...@gmail.com>
Sent: Sunday, November 3, 2019 5:03 AM
To: Greenberg, Gary <gg...@visa.com.invalid>
Cc: NetBeans Mailing List <us...@netbeans.apache.org>
Subject: Re: Why tests aren't executing?

Hi,

Where are unit tests located? src/test/java ?
How are unit test classes named? myTest.java ?
What is surefire plugin configuration?

Regards,

Arnaud

Le jeu. 31 oct. 2019 à 23:41, Greenberg, Gary <gg...@visa.com.invalid>> a écrit :
Still having problems with the project that I have inherited from the contractor.
I want to execute unit test, but when I select ‘Test’ from the project context menu I am getting:

--- maven-resources-plugin:3.1.0:testResources (default-testResources) @ mnsbatch ---
Not copying test resources

--- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mnsbatch ---
Not compiling test sources

--- maven-surefire-plugin:2.22.2:test (default-test) @ mnsbatch ---
Tests are skipped.
------------------------------------------------------------------------
BUILD SUCCESS
----------------

I did check project properties and there is no skip-tests = true anywhere in the actions.
If I try to run a particular test file, I am getting the same thing.
I am not blaming it on Netbeans, as I am getting the same result if I run “mvn test” from the command line, but will appreciate any help.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggreenbe@visa.com<ma...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]