Skip to content

Instantly share code, notes, and snippets.

View marcphilipp's full-sized avatar

Marc Philipp marcphilipp

View GitHub Profile
@marcphilipp
marcphilipp / oracle.sql
Created July 29, 2014 06:54
IndexColumn migration script
update tbl t1
set t1.reihenfolge = (with t3 as
(select t2.id, row_number() over (partition by modell order by bo) nr
from tbl t2)
select nr from t3
where t3.id = t1.id)
@marcphilipp
marcphilipp / README.md
Last active August 29, 2015 14:21
JUnit Modules

JUnit 5 Modules

New Group ID for Maven: org.junit

  • junit-assertion-api: Can be used by assertion frameworks like Hamcrest, AssertJ, or Truth.
    • org.junit.ComparisonFailure
    • org.junit.AssumptionViolatedException (without Matcher dependency)
  • junit-core (depends on junit-assertion-api)
    • No Hamcrest dependency (except for tests)
@marcphilipp
marcphilipp / checklist.md
Last active November 30, 2016 09:59
M3 release
  • Release ota4j and change ota4jVersion in gradle.properties accordingly, if necessary
  • Change version, platformVersion, and vintageVersion in gradle.properties to the versions about to be released
  • Change release date in User Guide
  • Change artifact versions in README.MD
  • Commit with message "Release ${VERSION}"
  • Execute ./gradlew clean uploadArchives
  • Close staging repo on Nexus
  • Release staging repo on Nexus
  • Tag current commit (e.g. r5.0.0-M1)
  • Update junit5-samples to use released version and create tag (e.g. r5.0.0-M1)
@marcphilipp
marcphilipp / todos.md
Last active April 16, 2018 10:47
JUnit Platform Parallel Execution

Parallel Execution

  • TreeWalker that generates execution plan (ExecutionMode and ResourceLock per Node) in HierarchicalTestExecutor
    • 1st pass: ExecutionMode and ResourceLock on Node
    • 2nd pass: Pull up ResourceLocks to first Node with ResourceLock, remove ResourceLocks from children, force ExecutionMode to Same_Thread
      • Optional optimization: Only pull up locks when ResourceLock order in descendants is not compatible
    • 2nd pass (?): Inherit ExecutionMode to children
  • Thread-safe listeners
  • Decide on config parameters (factor?)
  • Capture stdout/stderr
    • Optimize case when no parallel execution takes place to capture all stdout/stderr, not just from same thread?
@marcphilipp
marcphilipp / README.md
Created January 31, 2019 09:28
SCRIPT-8
Classfile 17-JupiterTestDescriptor.class
Last modified Apr 28, 2024; size 16084 bytes
SHA-256 checksum 464709a464e64cce32149ca46bd5870c09179d47c818c98981621369216f0ad1
Compiled from "JupiterTestDescriptor.java"
public abstract class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor implements org.junit.platform.engine.support.hierarchical.Node<org.junit.jupiter.engine.execution.JupiterEngineExecutionContext>
minor version: 0
major version: 52
flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: #8 // org/junit/jupiter/engine/descriptor/JupiterTestDescriptor
super_class: #14 // org/junit/platform/engine/support/descriptor/AbstractTestDescriptor