File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed
editor/pages/tests/reports Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change 1+ import Head from "next/head" ;
2+ import { useRouter } from "next/router" ;
3+ import React from "react" ;
4+
5+ export default function HowToSetupReports ( ) {
6+ const router = useRouter ( ) ;
7+
8+ return (
9+ < >
10+ < Head >
11+ < title > How to setup local server for @codetest/reports</ title >
12+ </ Head >
13+
14+ < main
15+ style = { {
16+ textAlign : "center" ,
17+ width : 400 ,
18+ margin : "auto" ,
19+ } }
20+ >
21+ < h1 >
22+ How to setup local server for < code > @codetest/reports</ code >
23+ </ h1 >
24+ < p >
25+ < code > @codetest/reports</ code > is a package that allows you to run
26+ engine tests locally, due to its high maintainance cost, we don't
27+ provide official reports server yet.
28+ < br />
29+ < br />
30+ < b > To generate reports, run the following command:</ b >
31+ < br />
32+ < br />
33+ < code >
34+ cd testing/reports
35+ < br />
36+ yarn build
37+ < br />
38+ yarn start
39+ </ code >
40+ < br />
41+ < br />
42+ < b > To run local reports server, run the following command:</ b >
43+ < br />
44+ < br />
45+ < code >
46+ cd testing/server
47+ < br />
48+ yarn dev
49+ </ code >
50+ < br />
51+ < br />
52+ < b > Go back to the page after server has started</ b >
53+ < br />
54+ < br />
55+ < button
56+ onClick = { ( ) => {
57+ router . replace ( "/tests/reports" ) ;
58+ } }
59+ >
60+ I've started the server, Go back to the page
61+ </ button >
62+ </ p >
63+ </ main >
64+ </ >
65+ ) ;
66+ }
You can’t perform that action at this time.
0 commit comments