N
N
nano_e_t_42018-02-02 22:21:19
Software testing
nano_e_t_4, 2018-02-02 22:21:19

How to get reports in jenkins?

Everyone
tell me, how can I display allure reports in jenkins through the pipeline?
A little more:
there is a pytest test that was run on a Windows machine via cmd (Windows is needed), as a result, it issues the main xml report and several json reports on the operations that it did. Now I want to transfer this business to jenkins, transfer accordingly to the pipeline. We installed the alur plugin, and I make the following pipe:

timeout(180) {
    timestamps {
        node('monitoring-client') {
            stage('Run tests') {
                catchError {
                    bat "cd c:/la-la-l && py.test tests/functional/deal/my_test.py --host=prod --log-level=10 --branch=dev"
                }
            }
            stage('Generate report') {
                junit 'C:/la-la/reports/*.xml'
                allure([
                        commandline: 'allure-2',
                        jdk: '',
                        results: 
                ])
            }
        }
    }
}

the test passes, but as a result I get the error
ERROR: No test report files were found. configuration error?
I go to the directory with my hands, there is this:
/ allure-results
/ test-messages
/ xunit.xml
please tell me which way to dig
ps
I’m not strong in testing, maybe I didn’t post all the necessary information

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question