question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

History won't be generated

See original GitHub issue

I am using: protractor, jasmine-allure-reporter, allure-commandline


I had the problem, that no history would be generated over multiple testsuite executions. After understanding the purpose of the history-feature (see https://stackoverflow.com/questions/47514696/what-exactly-are-history-and-retries-meant-to-mean-in-allure/47533045#47533045), more research and lots of trying out different things, I found this solution:

Before a new testsuite execution, the “history”-folder from “allure-report”-folder is supposed to be copied into the “allure-results”-folder. This way, allure will generate the right history from the saved “history”-folder.

My fix: Execute the test via .bat and copy the folder beforehand:

if [[ -e ./allure-report/history ]]; then
  if [[ -e ./allure-results/history ]]; then
    rm -rf ./allure-results/history
  fi
  mv ./allure-report/history ./allure-results/history
fi
protractor conf.js
allure generate -c

Is there a better way to do this? Shouldn’t this happen by default?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
baevcommented, Nov 30, 2017

yeah, thats how it works at the moment. BTW we are going to implement allure config that will allow you to specify history folder via commandline:

$ allure generate --history /my/local/history

or using yaml configuration file

# allure.yml
history: /my/local/history
other.configs...

and then such config will be used during report generation

$ allure generate --config my/allure/config 
0reactions
baevcommented, Dec 15, 2017

I have found an issue with this solution. See the following scenario:

@johnmondeen please create a separate issue. Also provide sample project to reproduce the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clear browsing data - Computer - Google Chrome Help
You can control your history and other browsing data, like saved form entries. You can delete all of your data or just some...
Read more >
View and delete browser history in Microsoft Edge
You can view and clear your Microsoft Edge browsing history stored on a single device, across all synced devices, and in the cloud....
Read more >
History.pushState() - Web APIs | MDN
The state object is a JavaScript object which is associated with the new history entry created by pushState() . Whenever the user navigates...
Read more >
The complete guide to Salesforce field history tracking
Querying field history · A field named "created" - When a new record is created, Salesforce adds a record into the history object...
Read more >
You Won't Believe What These Historical Figures Actually ...
But there's a cast—made from Robert's skull that was unearthed 200 years ago when his burial site was being rebuilt—has formed the basis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found