@@ -87,47 +87,6 @@ gradle clean test
87
87
\`\`\`
88
88
` ;
89
89
90
- const generateJUnitInstructions = ( framework : string ) => `
91
- Set BrowserStack credentials as environment variables:
92
- \`\`\`bash
93
- export BROWSERSTACK_USERNAME="${ config . browserstackUsername } "
94
- export BROWSERSTACK_ACCESS_KEY="${ config . browserstackAccessKey } "
95
- \`\`\`
96
-
97
- For Maven projects, run the following command to add browserstack-java-sdk dependency and browserstack.yml file:
98
- \`\`\`bash
99
- mvn archetype:generate -B -DarchetypeGroupId=com.browserstack \\
100
- -DarchetypeArtifactId=browserstack-sdk-archetype-integrate -DarchetypeVersion=1.0 \\
101
- -DgroupId=com.browserstack -DartifactId=browserstack-sdk-archetype-integrate -Dversion=1.0 \\
102
- -DBROWSERSTACK_USERNAME=${ config . browserstackUsername } -DBROWSERSTACK_ACCESS_KEY=${ config . browserstackAccessKey } \\
103
- -DBROWSERSTACK_FRAMEWORK=${ framework }
104
- \`\`\`
105
-
106
- For Gradle projects, add to build.gradle:
107
- \`\`\`groovy
108
- implementation 'com.browserstack:browserstack-java-sdk:latest.release'
109
-
110
- def browserstackSDKArtifact = configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts.find { it.name == 'browserstack-java-sdk' }
111
-
112
- test {
113
- jvmArgs "-javaagent:\${browserstackSDKArtifact.file}"
114
- }
115
- \`\`\`
116
-
117
- Run tests using:
118
- \`\`\`bash
119
- mvn clean test
120
- \`\`\`
121
-
122
- Or for Gradle:
123
- \`\`\`bash
124
- gradle clean test
125
- \`\`\`
126
- ` ;
127
-
128
- const junit4Instructions = generateJUnitInstructions ( "junit4" ) ;
129
- const junit5Instructions = generateJUnitInstructions ( "junit5" ) ;
130
-
131
90
/**
132
91
* ---------- CSharp INSTRUCTIONS ----------
133
92
*/
@@ -458,8 +417,8 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
458
417
selenium : {
459
418
testng : { instructions : javaInstructions } ,
460
419
cucumber : { instructions : javaInstructions } ,
461
- junit4 : { instructions : junit4Instructions } ,
462
- junit5 : { instructions : junit5Instructions } ,
420
+ junit4 : { instructions : javaInstructions } ,
421
+ junit5 : { instructions : javaInstructions } ,
463
422
} ,
464
423
} ,
465
424
csharp : {
0 commit comments