Skip to content

Commit

Permalink
redirect output to resources directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Writhe authored and jan-goral committed Apr 30, 2020
1 parent 60de0b1 commit 6a059b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 3 additions & 3 deletions junit_html_report/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ jUnit HTML report
=================

# One time setup
- install Node (any version will do as long as it comes with NPM)
- install Node (any reasonably modern version will do as long as it comes with NPM)
- run `npm` or `yarn` (if you use Yarn)

# To build a static HTML/CSS app
- run `npm run build` or `yarn build` - this will transpile/bundle/minify a simple JS app and inline it into an HTML file.
- run `npm run build` or `yarn build` - this will transpile/bundle/minify a simple JS app and inline it into an HTML file (`../test_runner/src/main/resources/inline.html`)

# To spin up a dev server
- run `npm run start` or `yarn start` - this should serve the app and reload when source files change.
- run `npm run start` or `yarn start` - this should serve the app with test data and reload whenever source files change.
5 changes: 4 additions & 1 deletion junit_html_report/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ module.exports = {
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'build'),
// path: isProduction
// ? path.resolve(__dirname, 'test_runner', 'src', 'main', 'resources')
// : path.resolve(__dirname, 'build'),
},
devServer: {
contentBase: './build',
Expand All @@ -54,7 +57,7 @@ module.exports = {
inject: false,
cache: false,
template: 'index.ejs',
filename: isProduction ? 'inline.html' : 'index.html',
filename: isProduction ? path.resolve(__dirname, '..', 'test_runner', 'src', 'main', 'resources', 'inline.html') : 'index.html',
title: 'JUnit Report',
minify: true,
inlineBundle: isProduction,
Expand Down
11 changes: 1 addition & 10 deletions test_runner/src/main/resources/inline.html

Large diffs are not rendered by default.

0 comments on commit 6a059b6

Please sign in to comment.