Skip to content

Commit

Permalink
Run unit and integration separately
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergrabinski committed Mar 26, 2024
1 parent 88e0311 commit ff8b252
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-delta-ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Clean, build Delta & Storage images
run: |
sbt -Dsbt.color=always -Dsbt.supershell=false \
clean \
app/Docker/publishLocal
- name: Start services
run: docker-compose -f tests/docker/docker-compose.yml up -d
Expand All @@ -46,5 +45,5 @@ jobs:
- name: Unit tests
run: |
sbt -Dsbt.color=always -Dsbt.supershell=false \
clean \
ship-unit-tests
ship/test -- -l "ch.epfl.bluebrain.nexus.ship.tags.Integration"
ship/test -- -n "ch.epfl.bluebrain.nexus.ship.tags.Integration"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ch.epfl.bluebrain.nexus.delta.rdf.Vocabulary.nxv
import ch.epfl.bluebrain.nexus.delta.sourcing.exporter.ExportEventQuery
import ch.epfl.bluebrain.nexus.delta.sourcing.model.{Label, ProjectRef}
import ch.epfl.bluebrain.nexus.delta.sourcing.offset.Offset
import ch.epfl.bluebrain.nexus.ship.tags.Integration
import ch.epfl.bluebrain.nexus.tests.BaseIntegrationSpec
import ch.epfl.bluebrain.nexus.tests.Identity.writer
import ch.epfl.bluebrain.nexus.tests.admin.ProjectPayload
Expand All @@ -22,6 +23,7 @@ import java.nio.file.{Files, Paths}
import scala.concurrent.duration.DurationInt
import scala.jdk.CollectionConverters.IteratorHasAsScala

@Integration
class EndToEndTest extends BaseIntegrationSpec {

override def beforeAll(): Unit = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package ch.epfl.bluebrain.nexus.ship.tags;

import org.scalatest.TagAnnotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@TagAnnotation
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface Integration {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package ch.epfl.bluebrain.nexus.ship.tags

import org.scalatest.Tag

object TagObjects {

object Integration extends Tag("ch.epfl.bluebrain.nexus.ship.tags.Integration")

}

0 comments on commit ff8b252

Please sign in to comment.