import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
-import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.commands.DoNothing;
import frc.robot.commands.drive_comm.DefaultDriveCommand;
import frc.robot.commands.gpm.AutoShootCommand;
import frc.robot.constants.AutoConstants;
import frc.robot.constants.Constants;
import frc.robot.constants.IntakeConstants;
-import frc.robot.constants.VisionConstants;
import frc.robot.controls.BaseDriverConfig;
import frc.robot.controls.Operator;
import frc.robot.controls.PS5ControllerDriverConfig;
package frc.robot.util;
+import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
+import com.pathplanner.lib.auto.NamedCommands;
+
+import edu.wpi.first.wpilibj2.command.InstantCommand;
+
/**
* Simple check on PathPlanner path
*/
public class PathCheck {
+ /**
+ * Register placeholder commands for testing.
+ * These are normally registered in RobotContainer.registerCommands(),
+ * but the test doesn't instantiate RobotContainer.
+ */
+ @BeforeAll
+ public static void registerPlaceholderCommands() {
+ NamedCommands.registerCommand("Extend intake", new InstantCommand());
+ NamedCommands.registerCommand("Intake", new InstantCommand());
+ NamedCommands.registerCommand("Climb", new InstantCommand());
+ }
+
/**
* Load the path groups.
* <p>