Correctly specify test report location for Grails 3 build on Bamboo

Ryan Heathcote

I am building a Grails 3 application using Atlassian Bamboo. I've configured the Grails 3 task as explained in my answer to this question.

I am having trouble getting Bamboo to find my test reports. On the Grails task type, you can specify if the task produces test results, and if so, where they come from. So I have tried the following:

  • Look in the standard test results directory
  • Specify custom results directories:
    • **/*reports/*.xml (which is the default when you choose Specify...)
    • build/reports/tests/index.html

All three produce this error:

Could not find test result reports in the /home/bamboo/bamboo-agent-home/xml-data/build-dir/CSSO-MPA4-JOB1 directory.

Ryan Heathcote

The correct answer is build/test-results/*.xml, as that is where JUnit puts its test reports.

**/*-reports/*.xml fails because it is in -results.

build/reports/tests/index.html fails because, as it says right above the input box:

Test output must be in JUnit XML format.

I discovered (from somewhere in this thread) that JUnit is responsible for generating the test results independent of Gradle / Grails, which is how I found they were in an odd place.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Test if the windows location is correctly set

Build image location in Crystal Report from report location

Grails 3 functional test

grails 3 plugin installation location

Specify build output location of PackageReference dependency DLLs

Bamboo build should fail if testng unit test case failed

How to specify test tags correctly in dart_test.yaml?

How do I specify JRE when creating a Bamboo sidekick agent for their per-build-container plug-in?

how to specify variables in JSON object in integration test in grails

maven build android project: specify the location of aidl file

TFS 2012 team build, How to specify package location

How to Grails 3 integration test in IntelliJ IDEA

Method on class [] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails Correctly

How to specify number of times a test should be run in BUILD file

Launchpad Build Recipes: How do I correctly specify build dependencies for packages in the same PPA?

Quarkus project build failing in Bamboo

Setting environment variables for a Bamboo build

How to build jacoco test report task in Kotlin (Gradle 5)

Jenkins build fail due to Junit test report not found : Intern Framework

cmake doesn't correctly run in a Bamboo script

Bamboo build error: How to properly clean bamboo caches?

How do I create multiple types of test data for a grails integration test using @Build

Is there a way to specify the location of a local jsch.jar from within build.xml?

How to specify correctly a file

How to specify the location with wget?

Specify location of volumes in docker

Testing Grails 3 app with 'gradle test' uses wrong environment config

Using Spock data driven tests in Grails 3 unit test

Grails 3: Integration tests run at a development environment, not at a test environment

TOP Ranking

  1. 1

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  2. 2

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  3. 3

    Loopback Error: connect ECONNREFUSED 127.0.0.1:3306 (MAMP)

  4. 4

    pump.io port in URL

  5. 5

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  6. 6

    BigQuery - concatenate ignoring NULL

  7. 7

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  8. 8

    Do Idle Snowflake Connections Use Cloud Services Credits?

  9. 9

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class

  10. 10

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  11. 11

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  12. 12

    Generate random UUIDv4 with Elm

  13. 13

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  14. 14

    Is it possible to Redo commits removed by GitHub Desktop's Undo on a Mac?

  15. 15

    flutter: dropdown item programmatically unselect problem

  16. 16

    Change dd-mm-yyyy date format of dataframe date column to yyyy-mm-dd

  17. 17

    EXCEL: Find sum of values in one column with criteria from other column

  18. 18

    Pandas - check if dataframe has negative value in any column

  19. 19

    How to use merge windows unallocated space into Ubuntu using GParted?

  20. 20

    Make a B+ Tree concurrent thread safe

  21. 21

    ggplotly no applicable method for 'plotly_build' applied to an object of class "NULL" if statements

HotTag

Archive