Skip to content

Commit

Permalink
test: refactor e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Nov 17, 2023
1 parent 3ba9984 commit 0309e87
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 14 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/plugin-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,22 @@ on:
type: choice
description: t option
options:
- nx-gradle
- nx-gradle create-nx-gradle-workspace
- nx-gradle gradle-root-directory e2e
- nx-gradle gradle-root-directory kotlin dsl e2e
- nx-gradle kt-multiplatform kotlin dsl e2e
- nx-gradle micronaut e2e
- nx-gradle micronaut kotlin dsl e2e
- nx-gradle all e2e
- nx-gradle all kotlin dsl e2e
- nx-gradle quarkus e2e
- nx-gradle quarkus kotlin dsl e2e
- nx-gradle spring-boot e2e
- create-nx-gradle-workspace
- nx-gradle spring-boot kotlin dsl e2e
- nx-maven
- nx-maven all bom e2e
- create-nx-maven-workspace
- nx-maven create-nx-maven-workspace
- nx-maven maven-root-directory e2e
- nx-maven micronaut-parent-pom e2e
- nx-maven quarkus bom e2e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createTestWorkspaceWithCustomCli } from '@jnxplus/internal/testing';
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('create-nx-gradle-workspace', () => {
describe('nx-gradle create-nx-gradle-workspace', () => {
let workspaceDirectory: string;

afterAll(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-gradle kotlin dsl e2e', () => {
describe('nx-gradle gradle-root-directory kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-gradle e2e', () => {
describe('nx-gradle gradle-root-directory e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-gradle kotlin dsl kotlin-multiplatform preset e2e', () => {
describe('nx-gradle kt-multiplatform kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-micronaut-gradle kt e2e', () => {
describe('nx-gradle micronaut kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-micronaut-gradle e2e', () => {
describe('nx-gradle micronaut e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-gradle kotlin dsl e2e', () => {
describe('nx-gradle all kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-gradle e2e', () => {
describe('nx-gradle all e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-quarkus-gradle kt e2e', () => {
describe('nx-gradle quarkus kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-quarkus-gradle e2e', () => {
describe('nx-gradle quarkus e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('nx-boot-gradle kt e2e', () => {
describe('nx-gradle spring-boot kotlin dsl e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createTestWorkspaceWithCustomCli } from '@jnxplus/internal/testing';
import { execSync } from 'child_process';
import { rmSync } from 'fs';

describe('create-nx-maven-workspace', () => {
describe('nx-maven create-nx-maven-workspace', () => {
let workspaceDirectory: string;

afterAll(() => {
Expand Down

0 comments on commit 0309e87

Please sign in to comment.